package com.th.admin.actuator.metrics;

/**
 * @author ThreePure
 * @date 2022/4/23 20:56
 * @description: TODO
 * @since 1.8
 */
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tags;
import org.springframework.stereotype.Component;
import java.util.Dictionary;

@Component
public class MyBean {

    Counter counter;
    public MyBean(MeterRegistry meterRegistry){
        counter = meterRegistry.counter("myservice.method.running.counter");
    }

    public void hello() {
        counter.increment();
    }

}

